
#include "nodehead.h"
#include "chesspane.h"

NodeHead::NodeHead(ChessPane *parent)
{
    //本节点位置
    m = parent->x;
    n = parent->y;
    //第一个节点的父节点为chess对象
    pchess = parent;
    nlevel = 0;
    // 头节点的颜色是刚才落下的棋子的颜色。
    myColor = parent->color;
    grid = pchess->board->signGrid;
    initial();
}

